package com.vueapi.constant;

/**
 * @Classname CommonEnum
 * @Description TODO
 * @Created by 赵宏建
 * @Date 2022/9/20 16:27
 * @Version 1.0.0
 */
public class CommonEnum {

    public enum ArticleType{

        Original(0,"原创"),
        Reshipped(1,"转载");

        private final int code;
        private final String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        ArticleType(int code,String msg){
            this.code = code;
            this.msg = msg;
        }

    }

    public enum Weight{

        No(0,"是"),
        YES(1,"否");

        private final int code;
        private final String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        Weight(int code,String msg){
            this.code = code;
            this.msg = msg;
        }

    }

    public enum ArticlePublish{

        NO(0,"下架"),
        YES(1,"发布");

        private final int code;
        private final String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        ArticlePublish(int code,String msg){
            this.code = code;
            this.msg = msg;
        }

    }

    public enum ArticleComment{

        NO(0,"不允许"),
        YES(1,"允许");

        private final int code;
        private final String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        ArticleComment(int code,String msg){
            this.code = code;
            this.msg = msg;
        }

    }

    public enum CommentAuditStatus{

        WAIT(0,"等待审核"),
        SUCCESS(1,"审核成功"),
        FAIL(2,"审核失败");

        private final int code;
        private final String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        CommentAuditStatus(int code,String msg){
            this.code = code;
            this.msg = msg;
        }

    }

    public enum CommentLevel{

        F(1,"父级"),
        S(2,"子级");

        private final int code;
        private final String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        CommentLevel(int code,String msg){
            this.code = code;
            this.msg = msg;
        }

    }
}
